cmake_minimum_required(VERSION 2.6)
project(hello)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREAD OFF)
set(Boost_DEBUG TRUE)
find_package(Boost REQUIRED COMPONENTS system)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
if (Boost_NOTFOUND)
	message(FATAL_ERROR "Boost not found")
endif()
set(CMAKE_CXX_FLAGS_Debug "-O0 -g -D_DEBUG")
set(CMAKE_CXX_FLAGS_Release "-D_DEBUG")
if (WIN32)
	set(LIB ws2_32 wsock32)
	add_definitions(-D_WIN32-WINNT=0X0501)
endif()
set(HELLO_SRCS main.cpp connection.cpp connection_manager.cpp mime_types.cpp reply.cpp request_handler.cpp request_parser.cpp server.cpp)
add_executable(${PROJECT_NAME} ${HELLO_SRCS})
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${LIB})

